/****************************************************************************
** Meta object code from reading C++ file 'qwt_picker.h'
**
** Created by: The Qt Meta Object Compiler version 68 (Qt 6.5.3)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../qwt_picker.h"
#include <QtCore/qmetatype.h>

#if __has_include(<QtCore/qtmochelpers.h>)
#include <QtCore/qtmochelpers.h>
#else
QT_BEGIN_MOC_NAMESPACE
#endif


#include <memory>

#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qwt_picker.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 68
#error "This file was generated using the moc from 6.5.3. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {

#ifdef QT_MOC_HAS_STRINGDATA
struct qt_meta_stringdata_CLASSQwtPickerENDCLASS_t {};
static constexpr auto qt_meta_stringdata_CLASSQwtPickerENDCLASS = QtMocHelpers::stringData(
    "QwtPicker",
    "selected",
    "",
    "QwtPolygon",
    "pa",
    "appended",
    "pos",
    "moved",
    "changed",
    "selectionFlags",
    "trackerMode",
    "DisplayMode",
    "trackerFont",
    "rubberBand",
    "RubberBand",
    "resizeMode",
    "ResizeMode",
    "isEnabled",
    "trackerPen",
    "rubberBandPen",
    "NoRubberBand",
    "HLineRubberBand",
    "VLineRubberBand",
    "CrossRubberBand",
    "RectRubberBand",
    "EllipseRubberBand",
    "PolygonRubberBand",
    "UserRubberBand",
    "AlwaysOff",
    "AlwaysOn",
    "ActiveOnly",
    "Stretch",
    "KeepSize"
);
#else  // !QT_MOC_HAS_STRING_DATA
struct qt_meta_stringdata_CLASSQwtPickerENDCLASS_t {
    uint offsetsAndSizes[66];
    char stringdata0[10];
    char stringdata1[9];
    char stringdata2[1];
    char stringdata3[11];
    char stringdata4[3];
    char stringdata5[9];
    char stringdata6[4];
    char stringdata7[6];
    char stringdata8[8];
    char stringdata9[15];
    char stringdata10[12];
    char stringdata11[12];
    char stringdata12[12];
    char stringdata13[11];
    char stringdata14[11];
    char stringdata15[11];
    char stringdata16[11];
    char stringdata17[10];
    char stringdata18[11];
    char stringdata19[14];
    char stringdata20[13];
    char stringdata21[16];
    char stringdata22[16];
    char stringdata23[16];
    char stringdata24[15];
    char stringdata25[18];
    char stringdata26[18];
    char stringdata27[15];
    char stringdata28[10];
    char stringdata29[9];
    char stringdata30[11];
    char stringdata31[8];
    char stringdata32[9];
};
#define QT_MOC_LITERAL(ofs, len) \
    uint(sizeof(qt_meta_stringdata_CLASSQwtPickerENDCLASS_t::offsetsAndSizes) + ofs), len 
Q_CONSTINIT static const qt_meta_stringdata_CLASSQwtPickerENDCLASS_t qt_meta_stringdata_CLASSQwtPickerENDCLASS = {
    {
        QT_MOC_LITERAL(0, 9),  // "QwtPicker"
        QT_MOC_LITERAL(10, 8),  // "selected"
        QT_MOC_LITERAL(19, 0),  // ""
        QT_MOC_LITERAL(20, 10),  // "QwtPolygon"
        QT_MOC_LITERAL(31, 2),  // "pa"
        QT_MOC_LITERAL(34, 8),  // "appended"
        QT_MOC_LITERAL(43, 3),  // "pos"
        QT_MOC_LITERAL(47, 5),  // "moved"
        QT_MOC_LITERAL(53, 7),  // "changed"
        QT_MOC_LITERAL(61, 14),  // "selectionFlags"
        QT_MOC_LITERAL(76, 11),  // "trackerMode"
        QT_MOC_LITERAL(88, 11),  // "DisplayMode"
        QT_MOC_LITERAL(100, 11),  // "trackerFont"
        QT_MOC_LITERAL(112, 10),  // "rubberBand"
        QT_MOC_LITERAL(123, 10),  // "RubberBand"
        QT_MOC_LITERAL(134, 10),  // "resizeMode"
        QT_MOC_LITERAL(145, 10),  // "ResizeMode"
        QT_MOC_LITERAL(156, 9),  // "isEnabled"
        QT_MOC_LITERAL(166, 10),  // "trackerPen"
        QT_MOC_LITERAL(177, 13),  // "rubberBandPen"
        QT_MOC_LITERAL(191, 12),  // "NoRubberBand"
        QT_MOC_LITERAL(204, 15),  // "HLineRubberBand"
        QT_MOC_LITERAL(220, 15),  // "VLineRubberBand"
        QT_MOC_LITERAL(236, 15),  // "CrossRubberBand"
        QT_MOC_LITERAL(252, 14),  // "RectRubberBand"
        QT_MOC_LITERAL(267, 17),  // "EllipseRubberBand"
        QT_MOC_LITERAL(285, 17),  // "PolygonRubberBand"
        QT_MOC_LITERAL(303, 14),  // "UserRubberBand"
        QT_MOC_LITERAL(318, 9),  // "AlwaysOff"
        QT_MOC_LITERAL(328, 8),  // "AlwaysOn"
        QT_MOC_LITERAL(337, 10),  // "ActiveOnly"
        QT_MOC_LITERAL(348, 7),  // "Stretch"
        QT_MOC_LITERAL(356, 8)   // "KeepSize"
    },
    "QwtPicker",
    "selected",
    "",
    "QwtPolygon",
    "pa",
    "appended",
    "pos",
    "moved",
    "changed",
    "selectionFlags",
    "trackerMode",
    "DisplayMode",
    "trackerFont",
    "rubberBand",
    "RubberBand",
    "resizeMode",
    "ResizeMode",
    "isEnabled",
    "trackerPen",
    "rubberBandPen",
    "NoRubberBand",
    "HLineRubberBand",
    "VLineRubberBand",
    "CrossRubberBand",
    "RectRubberBand",
    "EllipseRubberBand",
    "PolygonRubberBand",
    "UserRubberBand",
    "AlwaysOff",
    "AlwaysOn",
    "ActiveOnly",
    "Stretch",
    "KeepSize"
};
#undef QT_MOC_LITERAL
#endif // !QT_MOC_HAS_STRING_DATA
} // unnamed namespace

Q_CONSTINIT static const uint qt_meta_data_CLASSQwtPickerENDCLASS[] = {

 // content:
      11,       // revision
       0,       // classname
       0,    0, // classinfo
       4,   14, // methods
       8,   50, // properties
       3,   90, // enums/sets
       0,    0, // constructors
       0,       // flags
       4,       // signalCount

 // signals: name, argc, parameters, tag, flags, initial metatype offsets
       1,    1,   38,    2, 0x06,    9 /* Public */,
       5,    1,   41,    2, 0x06,   11 /* Public */,
       7,    1,   44,    2, 0x06,   13 /* Public */,
       8,    1,   47,    2, 0x06,   15 /* Public */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, QMetaType::QPoint,    6,
    QMetaType::Void, QMetaType::QPoint,    6,
    QMetaType::Void, 0x80000000 | 3,    4,

 // properties: name, type, flags
       9, QMetaType::Int, 0x00015103, uint(-1), 0,
      10, 0x80000000 | 11, 0x0001510b, uint(-1), 0,
      12, QMetaType::QFont, 0x00015103, uint(-1), 0,
      13, 0x80000000 | 14, 0x0001510b, uint(-1), 0,
      15, 0x80000000 | 16, 0x0001510b, uint(-1), 0,
      17, QMetaType::Bool, 0x00015003, uint(-1), 0,
      18, QMetaType::QPen, 0x00015103, uint(-1), 0,
      19, QMetaType::QPen, 0x00015103, uint(-1), 0,

 // enums: name, alias, flags, count, data
      14,   14, 0x0,    8,  105,
      11,   11, 0x0,    3,  121,
      16,   16, 0x0,    2,  127,

 // enum data: key, value
      20, uint(QwtPicker::NoRubberBand),
      21, uint(QwtPicker::HLineRubberBand),
      22, uint(QwtPicker::VLineRubberBand),
      23, uint(QwtPicker::CrossRubberBand),
      24, uint(QwtPicker::RectRubberBand),
      25, uint(QwtPicker::EllipseRubberBand),
      26, uint(QwtPicker::PolygonRubberBand),
      27, uint(QwtPicker::UserRubberBand),
      28, uint(QwtPicker::AlwaysOff),
      29, uint(QwtPicker::AlwaysOn),
      30, uint(QwtPicker::ActiveOnly),
      31, uint(QwtPicker::Stretch),
      32, uint(QwtPicker::KeepSize),

       0        // eod
};

Q_CONSTINIT const QMetaObject QwtPicker::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_CLASSQwtPickerENDCLASS.offsetsAndSizes,
    qt_meta_data_CLASSQwtPickerENDCLASS,
    qt_static_metacall,
    nullptr,
    qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSQwtPickerENDCLASS_t,
        // property 'selectionFlags'
        QtPrivate::TypeAndForceComplete<int, std::true_type>,
        // property 'trackerMode'
        QtPrivate::TypeAndForceComplete<DisplayMode, std::true_type>,
        // property 'trackerFont'
        QtPrivate::TypeAndForceComplete<QFont, std::true_type>,
        // property 'rubberBand'
        QtPrivate::TypeAndForceComplete<RubberBand, std::true_type>,
        // property 'resizeMode'
        QtPrivate::TypeAndForceComplete<ResizeMode, std::true_type>,
        // property 'isEnabled'
        QtPrivate::TypeAndForceComplete<bool, std::true_type>,
        // property 'trackerPen'
        QtPrivate::TypeAndForceComplete<QPen, std::true_type>,
        // property 'rubberBandPen'
        QtPrivate::TypeAndForceComplete<QPen, std::true_type>,
        // Q_OBJECT / Q_GADGET
        QtPrivate::TypeAndForceComplete<QwtPicker, std::true_type>,
        // method 'selected'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QwtPolygon &, std::false_type>,
        // method 'appended'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QPoint &, std::false_type>,
        // method 'moved'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QPoint &, std::false_type>,
        // method 'changed'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QwtPolygon &, std::false_type>
    >,
    nullptr
} };

void QwtPicker::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<QwtPicker *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->selected((*reinterpret_cast< std::add_pointer_t<QwtPolygon>>(_a[1]))); break;
        case 1: _t->appended((*reinterpret_cast< std::add_pointer_t<QPoint>>(_a[1]))); break;
        case 2: _t->moved((*reinterpret_cast< std::add_pointer_t<QPoint>>(_a[1]))); break;
        case 3: _t->changed((*reinterpret_cast< std::add_pointer_t<QwtPolygon>>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (QwtPicker::*)(const QwtPolygon & );
            if (_t _q_method = &QwtPicker::selected; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (QwtPicker::*)(const QPoint & );
            if (_t _q_method = &QwtPicker::appended; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (QwtPicker::*)(const QPoint & );
            if (_t _q_method = &QwtPicker::moved; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (QwtPicker::*)(const QwtPolygon & );
            if (_t _q_method = &QwtPicker::changed; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
                *result = 3;
                return;
            }
        }
    }else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<QwtPicker *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< int*>(_v) = _t->selectionFlags(); break;
        case 1: *reinterpret_cast< DisplayMode*>(_v) = _t->trackerMode(); break;
        case 2: *reinterpret_cast< QFont*>(_v) = _t->trackerFont(); break;
        case 3: *reinterpret_cast< RubberBand*>(_v) = _t->rubberBand(); break;
        case 4: *reinterpret_cast< ResizeMode*>(_v) = _t->resizeMode(); break;
        case 5: *reinterpret_cast< bool*>(_v) = _t->isEnabled(); break;
        case 6: *reinterpret_cast< QPen*>(_v) = _t->trackerPen(); break;
        case 7: *reinterpret_cast< QPen*>(_v) = _t->rubberBandPen(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<QwtPicker *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setSelectionFlags(*reinterpret_cast< int*>(_v)); break;
        case 1: _t->setTrackerMode(*reinterpret_cast< DisplayMode*>(_v)); break;
        case 2: _t->setTrackerFont(*reinterpret_cast< QFont*>(_v)); break;
        case 3: _t->setRubberBand(*reinterpret_cast< RubberBand*>(_v)); break;
        case 4: _t->setResizeMode(*reinterpret_cast< ResizeMode*>(_v)); break;
        case 5: _t->setEnabled(*reinterpret_cast< bool*>(_v)); break;
        case 6: _t->setTrackerPen(*reinterpret_cast< QPen*>(_v)); break;
        case 7: _t->setRubberBandPen(*reinterpret_cast< QPen*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    } else if (_c == QMetaObject::BindableProperty) {
    }
}

const QMetaObject *QwtPicker::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *QwtPicker::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_CLASSQwtPickerENDCLASS.stringdata0))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "QwtEventPattern"))
        return static_cast< QwtEventPattern*>(this);
    return QObject::qt_metacast(_clname);
}

int QwtPicker::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 4)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 4)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 4;
    }else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
    return _id;
}

// SIGNAL 0
void QwtPicker::selected(const QwtPolygon & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void QwtPicker::appended(const QPoint & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void QwtPicker::moved(const QPoint & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void QwtPicker::changed(const QwtPolygon & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}
QT_WARNING_POP
